function doClose() {
    var phone = $('#phone').val();
    var phoneNo = $('#phoneNo').val();
    if(phone != phoneNo){
        if(!checkForm(phoneNo)){
            return;
        }
        passReg();
    }else{
        window.location.href = basePath + 'bizUserRegistered/userInfoPage?t=' + new Date().getTime()/*+ '&pageNo=' + searchInfo.pageNo + '&pageSize=' + searchInfo.pageSize*/;
    }
}

function passReg(){
    var str = '尚有信息未保存，确认关闭？';
    swalToastr('信息审核', str, 'warning', doCheckMergeOrg);
}

function doCheckMergeOrg(){
    window.location.href = basePath + 'bizUserRegistered/userInfoPage?t=' + new Date().getTime();
}



function checkForm(phoneNo){
    if(phoneNo == null || phoneNo == ""){
        alert("手机号码未输入");
        return false;
    }
    var regPhone = /^((12[0-9])|(13[0-9])|(14[0-9])|(15[0-9])|(16[0-9])|(17[0-9])|(18[0-9])|(19[0-9]))\d{8}$/;
    if(!(regPhone.test(phoneNo))){
        alert("手机号码格式不正确");
        return false;
    }

    return true;
}